home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 2
/
Atari Mega Archive CD - Volume 2.iso
/
8bit
/
cislib_b
/
plot.doc
< prev
next >
Wrap
Text File
|
1995-04-22
|
5KB
|
69 lines
PLOT.BAS is a BASIC program designed to generate polar charts,
parametric charts and three dimensional function charts.or polar charts
you enter a function which defines the distance from the origin as a
function of the angle of the point. Entering the function 10*SIN(8*T) and
leting T run from 0 to 360 will produce an 16 leaved flower as a plot.
Notice that the function uses "T" as a variable. After entering the
equation you are asked for the followingaximum diameter: This is the
maximum distance from the origin which will be plotted. inimum Angle and
Maximum Angle: These values are the range of values through which the
variable "T" will be carried. The graph will now be drawn. You will be
asked if you want grids when the graph is done. These are somewhat
different than normal. The grids show the distance and angles in 15
degree gradations. The net result is a look similar to a dart board.t the
end you will be asked if you want to print the title which is simply the
formula.or Parametrics you have to enter two equations based on "T". The
first defines the "X" value and the second defines the "Y" value. An
example might be=SIN(T)+COS(5*T)IN(5*T)-COS(T)f you define X=T then the
parametric form reduces to the more usual Y=F(X).he questions are
slightly different. You are asked for the minimum and maximum values of
"T" then the Minimum and maximums for Y and X respectively. These latter
items are used to set the limits on the graphing area. or both polar and
parametric graphs an overlay simply means not printing axes. It can also
be used to print a total polar graph with higher resolution. For example
you could plot one graph from 0 to 180 degrees and then the same graph
with angles of 180 to 360. This would double the resolution of the graph.
The normal graph uses 319 steps for the graph. Scaling is always based on
the current information you provide.n setting the location for Tally
plotters you have the choice of ensuring round circles or of allowing
full utilization of the paper. For polar graph types it would probably be
best to ensure round circles.hree Dimensional functions of the form
Z=f(X,Y) may be graphed. The program uses an oblique projection for the
graph so accurate measurements may be made from the resultant plot. The
information requested is as follows.unction definition: Simply enter a
function using X and Y as variables.in X and Max X values: These are the
limits through which X will run.in Y and Max Y values: same as X values
except for Y axis.in Z and Max Z values: These variables simply determine
the minimum and maximum for the Z axis. Values outside the range will
still be plotted IF THEIR LOCATION IS WITHIN THE PAPER AREA ASSIGNED.
Thus a Z value of -1 could very well be plotted even if the Z axis limits
were set to 0 and 20. The area assigned extends to a Y value of 191. This
allows the X axis labels to be properly placed on the graph. This limit
may be changed by altering lines 22120 and 22320. In no case should a
value higher than 199 be used however.umber of Y segments: The program
displays the graph by sweeping horizontal elevation lines for various
constant values of Y with varying X values. This variable determines the
number of such lines. Values such as 50 are usually high enough.-axis
length: This variable is used to reduce the relative length of the X axis
if the standard length is considered to be too long.ngle of Y axis:
Angles from 1 to 359 are allowed. This angle represents the viewing
position of the plot. Angles above 180 are from the back side of the
function.how Hidden Lines. The hidden lines may be suppressed or shown.
Normally you would keep them hidden.orizontal lines only: The normal use
is to use only the horizontal elevation lines. You can however have lines
swept at constant X values as well. This gives the graph a checkerboard
look which can be visually quite effective but may make taking
measurements off the graph more confusing.umber of X segments: If you
decide to have a checkerboard look then this is the equivalent to the Y
segment number. xes: You can have no axes or a full 3D box or simply the
primary axes. The primary axes consist of 2 Y axes, 1 X axis and 1 Z
axis.OTE: A detailed plot takes a long time. Use of BASIC XE or BASIC XL
from O.S.S will dramatically speed up the process (as much as 6 times).
My top recomendation is Basic XE on an XE130. Basic XE is a Cart and
Disk. The file BASICXE.OSS must be moved from the Basic XE disc to the
enhancement boot disc. To make room one of the other files on the disk
must be removed and put on a blank disk for future
use.